﻿using STHPMS1.ICore.I_Entity;
using STHPMS1.ICore.I_Entity.Info;
using STHPMS1.ICore.I_Entity.Stmpms1;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;

namespace STHPMS1.ICore.I_DAL.Repository
{
    public interface IE_RoadwaydetailRepository : IDal
    {
        /// <summary>
        /// 返回单元最近的评定数据
        /// </summary>
        /// <param name="unit"></param>
        /// <returns></returns>
        DataTable GetLatelyValue(string unit);
        IEnumerable<T> Get<T>(string search, IPagingInfo info)
            where T : class, IE_Roadwaydetail;

        /// <summary>
        /// 删除单元评定表中当前评定批次下的所有数据
        /// </summary>
        /// <param name="inspecid">评定名称</param>
        /// <returns></returns>
        int Delete(string inspecid);

        /// <summary>
        /// 更新单元指标的值
        /// </summary>
        /// <param name="inspecid">评定名称</param>
        /// <param name="unit">单元ID</param>
        /// <param name="rdwayid">路线ID</param>
        /// <param name="colum">指标</param>
        /// <param name="values">指标值</param>
        void Update(string inspecid, string unit, string rdwayid, string colum, double values);

        
        ///// <summary>
        ///// 获取路线下所有评定名称
        ///// </summary>
        ///// <param name="rdwayid">路线</param>
        ///// <returns></returns>
        //List<string> GetInspecid(string rdwayid);
        /// <summary>
        /// 获取所有评定名称
        /// </summary>
        /// <returns></returns>
        List<string> GetInspecid();
        /// <summary>
        /// 获取评定名称下所有路线ID
        /// </summary>
        /// <param name="inspecid">评定名称</param>
        /// <returns></returns>
        List<string> GetRdwayID(string inspecid);
       

    }
}
